package models

type Role struct {
	ID         int64  `json:"id" gorm:"column:id;type:int;autoIncrement;primaryKey;comment:'id'"`
	Name       string `json:"name" gorm:"column:name;type:varchar(32);not null;comment:'角色名'"`
	CreateTime string `json:"createTime" gorm:"column:create_time;type:datetime;not null;comment:'创建时间'"`
	UpdateTime string `json:"updateTime" gorm:"column:update_time;type:datetime;default: null;comment:'修改时间时间'"`
	Status     int `json:"status" gorm:"column:status;type:tinyint;default:1;comment:'状态1正常-1禁用0未知'"`
}

func (Role) TableName() string {
	return "role"
}
